package com.redwine.app.net.responses;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * 我的收藏供应bean
 * 作者：gassion on 17/9/5 16:03
 * 最可怕的敌人，就是没有坚强的信念。
 */
public class MyCollectionSupplyResponse extends BaseResponse {

    /**
     * data : {"data":[{"id":"83","product_id":"21","type":"1","uid":"6","status":"1","publish_info":{"id":"21","category":"1","produce":"葡萄酒","name":"46464","city":"1","switch":"2","price":"12.00","num":"12","content":"nxnxxnxnx","pic":"https://t-app.baisouhj.com/image/hongjiu/201709/09/131411523681.png","date":"2017-09-09 13:14:11","status":"5","uid":"8"}},{"id":"84","product_id":"20","type":"1","uid":"6","status":"1","publish_info":{"id":"20","category":"3","produce":"5","name":"西班牙正宗红酒","city":"226","switch":"1","price":"80.00","num":"50","content":"保证是正品，假一赔十","pic":"https://t-app.baisouhj.com/image/hongjiu/201709/04/112758532877.png","date":"2017-09-04 11:27:58","status":"5","uid":"46"}}],"allpage":1,"page":1}
     */

    private DataEntityX data;

    public DataEntityX getData() {
        return data;
    }

    public void setData(DataEntityX data) {
        this.data = data;
    }

    public static class DataEntityX {
        /**
         * data : [{"id":"83","product_id":"21","type":"1","uid":"6","status":"1","publish_info":{"id":"21","category":"1","produce":"葡萄酒","name":"46464","city":"1","switch":"2","price":"12.00","num":"12","content":"nxnxxnxnx","pic":"https://t-app.baisouhj.com/image/hongjiu/201709/09/131411523681.png","date":"2017-09-09 13:14:11","status":"5","uid":"8"}},{"id":"84","product_id":"20","type":"1","uid":"6","status":"1","publish_info":{"id":"20","category":"3","produce":"5","name":"西班牙正宗红酒","city":"226","switch":"1","price":"80.00","num":"50","content":"保证是正品，假一赔十","pic":"https://t-app.baisouhj.com/image/hongjiu/201709/04/112758532877.png","date":"2017-09-04 11:27:58","status":"5","uid":"46"}}]
         * allpage : 1
         * page : 1
         */

        private int allpage;
        private int page;
        private List<DataEntity> data;

        public int getAllpage() {
            return allpage;
        }

        public void setAllpage(int allpage) {
            this.allpage = allpage;
        }

        public int getPage() {
            return page;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public List<DataEntity> getData() {
            return data;
        }

        public void setData(List<DataEntity> data) {
            this.data = data;
        }

        public static class DataEntity {
            /**
             * id : 83
             * product_id : 21
             * type : 1
             * uid : 6
             * status : 1
             * publish_info : {"id":"21","category":"1","produce":"葡萄酒","name":"46464","city":"1","switch":"2","price":"12.00","num":"12","content":"nxnxxnxnx","pic":"https://t-app.baisouhj.com/image/hongjiu/201709/09/131411523681.png","date":"2017-09-09 13:14:11","status":"5","uid":"8"}
             */

            private String id;
            private String product_id;
            private String type;
            private String uid;
            @SerializedName("status")
            private String statusX;
            private PublishInfoEntity publish_info;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getProduct_id() {
                return product_id;
            }

            public void setProduct_id(String product_id) {
                this.product_id = product_id;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public String getUid() {
                return uid;
            }

            public void setUid(String uid) {
                this.uid = uid;
            }

            public String getStatusX() {
                return statusX;
            }

            public void setStatusX(String statusX) {
                this.statusX = statusX;
            }

            public PublishInfoEntity getPublish_info() {
                return publish_info;
            }

            public void setPublish_info(PublishInfoEntity publish_info) {
                this.publish_info = publish_info;
            }

            public static class PublishInfoEntity {
                /**
                 * id : 21
                 * category : 1
                 * produce : 葡萄酒
                 * name : 46464
                 * city : 1
                 * switch : 2
                 * price : 12.00
                 * num : 12
                 * content : nxnxxnxnx
                 * pic : https://t-app.baisouhj.com/image/hongjiu/201709/09/131411523681.png
                 * date : 2017-09-09 13:14:11
                 * status : 5
                 * uid : 8
                 */

                private String id;
                private String category;
                private String produce;
                private String name;
                private String city;
                @SerializedName("switch")
                private String switchX;
                private String price;
                private String num;
                private String content;
                private String pic;
                private String date;
                @SerializedName("status")
                private String statusX;
                private String uid;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getCategory() {
                    return category;
                }

                public void setCategory(String category) {
                    this.category = category;
                }

                public String getProduce() {
                    return produce;
                }

                public void setProduce(String produce) {
                    this.produce = produce;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getCity() {
                    return city;
                }

                public void setCity(String city) {
                    this.city = city;
                }

                public String getSwitchX() {
                    return switchX;
                }

                public void setSwitchX(String switchX) {
                    this.switchX = switchX;
                }

                public String getPrice() {
                    return price;
                }

                public void setPrice(String price) {
                    this.price = price;
                }

                public String getNum() {
                    return num;
                }

                public void setNum(String num) {
                    this.num = num;
                }

                public String getContent() {
                    return content;
                }

                public void setContent(String content) {
                    this.content = content;
                }

                public String getPic() {
                    return pic;
                }

                public void setPic(String pic) {
                    this.pic = pic;
                }

                public String getDate() {
                    return date;
                }

                public void setDate(String date) {
                    this.date = date;
                }

                public String getStatusX() {
                    return statusX;
                }

                public void setStatusX(String statusX) {
                    this.statusX = statusX;
                }

                public String getUid() {
                    return uid;
                }

                public void setUid(String uid) {
                    this.uid = uid;
                }
            }
        }
    }
}
